import { useDrag } from 'react-dnd'

const quickBtn = ({
  children,
  stencil
}) => {
  const [, drag] = useDrag({
    type: 'PROCESS_DESIGNER',
    item: {
      dragType: 'quick',
      stencil: stencil
    }
  })

  return <div className="quick-btn" ref={drag}>
    {children}
  </div>
}

export default quickBtn